package com.atXiao;

import com.atXiao.template.AliPaymentTemplate;
import com.atXiao.template.PaymentTemplate;
import com.atXiao.template.WeChatPaymentTemplate;

public class paymentTest {
    public static void main(String[] args) {
        PaymentTemplate paymentTemplate = new AliPaymentTemplate();
        paymentTemplate.pay(100);  // 输出：使用支付宝支付：100元

        paymentTemplate = new WeChatPaymentTemplate();
        paymentTemplate.pay(200);
    }
}
